<template>
    <input :value="roleName" @input="bindInput" placeholder="编辑角色"/>
</template>

<script setup lang="ts">
defineProps({
    roleName:String
})
const emit = defineEmits(['update:roleName'])
const bindInput = (e:any)=>{
    emit('update:roleName',e.target.value)
}
</script>

<style scoped></style>
